package JLB_Chapter_07;

public class Restaurant4 {
    private Cook2 cook2 = new Cook2();
    public void takeOrder(String dish) {
        cook2.cooking(dish);
    }
    public String saySorry(){
        return "抱歉，餐厅不提供此项服务。";
    }
    public static void main(String[] args) {
        Restaurant4 waiter = new Restaurant4();
        System.out.println("请拿一份鱼香肉丝。");
        waiter.takeOrder("鱼香肉丝");
        System.out.println("你们的厨师叫什么名字？");
        System.out.println(waiter.saySorry());
        System.out.println("请让厨师给我切一点葱花。");
        System.out.println(waiter.saySorry());
    }
}
